﻿#region License
/*

	Copyright (C) 2008 Oliver Charles, Daniel Hollander

	This program is free software: you can redistribute it and/or modify
	it under the terms of the GNU General Public License as published by
	the Free Software Foundation, either version 3 of the License, or
	(at your option) any later version.

	This program is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU General Public License for more details.

	You should have received a copy of the GNU General Public License
	along with this program.  If not, see <http://www.gnu.org/licenses/>.
	
*/
#endregion

using System;
using System.Drawing;

namespace Moebius.Hud
{
    /// <summary>
    /// Settings to create a <see cref="Font"/>
    /// </summary>
    public sealed class FontSettings
    {
        #region Properties

        private Size mSize;
        private String mFamily;
        private bool mItalic;

        /// <summary>
        /// Gets or sets the size of the font (in 2 dimensions).
        /// </summary>
        public Size Size
        {
            get { return mSize; }
            set { mSize = value; }
        }

        /// <summary>
        /// Gets or sets the name of the font family.
        /// </summary>
        public string Family
        {
            get { return mFamily; }
            set { mFamily = value; }
        }

        /// <summary>
        /// Gets or sets whether this font should be displayed using italics or not.
        /// </summary>
        public bool Italic
        {
            get { return mItalic; }
            set { mItalic = value; }
        }

        #endregion

        #region Constructors

        /// <summary>
        /// Create a new instance of <see cref="FontSettings"/>
        /// </summary>
        /// <param name="fontFamily">The name of the font family.</param>
        /// <param name="fontSize">The size of the font.</param>
        public FontSettings(string fontFamily, int fontSize)
        {
            mFamily = fontFamily;
            mSize = new Size(0, fontSize);
        }

        #endregion
    }
}
